// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-11-17

#ifndef __SVR_SERVERTYPE_H_COMMON_SVR_BASE__
#define __SVR_SERVERTYPE_H_COMMON_SVR_BASE__

#pragma once

namespace JoyServer
{

// server types.
enum ServerType
{
    Server_None  = 0,
    Server_Login = 1,
    Server_Main  = 2,
};

// database server types.
enum DBServerType
{
    DBServer_None           = 0,
    DBServer_OnlineServer   = 1,
    DBServer_OnlineUser     = 2,
    DBServer_User           = 3,
    DBServer_UserSave       = 4,
    DBServer_Game_War3      = 1401,
    DBServer_Game_War3x     = 1403,
    DBServer_Game_CS15      = 1402,
};

#define JOY_DBSOURCE_NAME_SERVER        "server"
#define JOY_DBSOURCE_NAME_USER          "user"
#define JOY_DBSOURCE_NAME_USER_WRITE    "user_write"

} // namespace JoyServer

#endif  // __SVR_SERVERTYPE_H_COMMON_SVR_BASE__